package com.tujh.android.designpatterns.Builder;

import java.util.Vector;

/**
 * Created by TUJH on 2016/10/21.
 */
public class Product {

    private Vector<String> parts;

    public Product() {
        parts = new Vector<>();
    }

    public void addPart(String part) {
        parts.add(part);
    }

    public void show() {
        for (String p : parts) {
            System.out.println(p);
        }
    }
}
